﻿Namespace DotNetNuke.Modules.ActiveForums
    Partial Public Class af_polledit
        Inherits ForumBase
        Private _PollQuestion As String = ""
        Private _PollType As String = ""
        Private _PollOptions As String = ""
        Public Property PollQuestion() As String
            Get
                Return _PollQuestion
            End Get
            Set(ByVal value As String)
                _PollQuestion = value
            End Set
        End Property
        Public Property PollType() As String
            Get
                Return _PollType
            End Get
            Set(ByVal value As String)
                _PollType = value
            End Set
        End Property
        Public Property PollOptions() As String
            Get
                Return _PollOptions
            End Get
            Set(ByVal value As String)
                _PollOptions = value
            End Set
        End Property
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            If Not Page.IsPostBack Then
                txtPollQuestion.Text = PollQuestion
                rdPollType.SelectedIndex = rdPollType.Items.IndexOf(rdPollType.Items.FindByValue(PollType))
                txtPollOptions.Text = PollOptions
            End If
        End Sub

    End Class
End Namespace
